package com.esd.db.dao;

import java.util.List;
import java.util.Map;

import com.esd.db.model.VtdParameter;;

public interface VtdParameterMapper {
   
	List<VtdParameter> selectActiveALL();

	List<VtdParameter> selectParamByType(String type);

	int countAllByParamType(String type);

	int saveParameter(VtdParameter param);

	int countParamByParamNameAndType(Map<String, Object> map);
	
	List<VtdParameter> selectAllParamByType(String type);

	int updateParamActiveById(Map<String, Object> map);

	VtdParameter selectParamById(int id);

	int updateParamNameById(Map<String, Object> map);

	int updateParamValueById(Map<String, Object> map);

	int updateRemarksById(Map<String, Object> map);

	String selectMaxParamValueByParamType(String paramType);

	String selectRemarksByParamVlaueAndParamType(Map<String, Object> map);

	int updateBackup1ByParamValueAndParamType(Map<String, Object> map);

	VtdParameter selectParamValueByParamTypeAndParamName(Map<String, Object> map);
	
	int updateBackup2ByParamId(Map<String, Object> map);

	String selectBackup2ByParamValueAndParamType(Map<String, Object> map);

}